package demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-08-12
 * Time: 8:12
 */
public class yanghuisanjiao2 {
    public List<List<Integer>> generate(int numRow){
        List<List<Integer>> ret = new ArrayList<>();
        List<Integer> list0 = new ArrayList<>();
        list0.add(1);
        ret.add(list0);

        //从第二行开始
        for (int i = 1; i < numRow; i++) {
            //第一个数
            List<Integer> curRow = new ArrayList<>();
            curRow.add(1);
            //中间
            List<Integer> preRow = curRow;

        }
        return ret;
    }
}
